//
//  RemindCell.m
//  DefendHealth
//
//  Created by UNOHACHA on 17/2/21.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import "RemindCell.h"

@implementation RemindCell

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        self.contentView.backgroundColor = kWhiteColor;
        CGFloat  centerY = 50/2;
        UILabel * peoL = [ReduceCode creatLabelWithFrame:CGRectMake(20,0, 90, 14) title:@"是否提醒" titleColor:UIColorFromRGB(0x333333) font:14 textAlignment:NSTextAlignmentLeft];
        peoL.centerY = centerY;
        [self.contentView addSubview:peoL];
        
        UISwitch *cellSwitch = [[UISwitch alloc]initWithFrame:CGRectMake(kMaxX(self.contentView.frame)-10, 10, 40, 30)];
        cellSwitch.transform = CGAffineTransformMakeScale(0.75,0.75);
        [self.contentView addSubview:cellSwitch];
        
        
        [ToolUtil createLine:kMaxY(peoL.frame)+18 superView:self.contentView lift:20 width:kScreenWidth-40 hight:1 color:k_TableBackColor];
//        [sw setThumbTintColor:[UIColor whiteColor]];
//        [sw setOnTintColor:[UIColor blackColor]];
        
//        UISwitch * swich = [[UISwitch alloc]initWithFrame:CGRectMake(kScreenWidth-27, peoL.y-20, 30, 14)];
//        swich.tintColor = kBlackColor;
//        [swich setOn:NO];
////        [swich addTarget:self action:@selector(changeType) forControlEvents:UIControlEventTouchUpInside];
//        [self.contentView addSubview:swich];
        
        
//        UIImageView * weather = [ReduceCode creatImageVeiwWithFrame:CGRectMake(kScreenWidth-27, peoL.y, 7, 14) imageName:@"point" isCorner:NO];
//        [self.contentView addSubview:weather];
//        
//              
    }
    
    return self;
}


@end
